/**
 * Created by Administrator on 2017/10/19.
 */
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var schema = new Schema({
    articleId:ObjectId,
    content:String,
    commentTime:{type: Date, default: Date.now },
    appraiser:String,
})

schema.plugin(mongoosePaginate);
var Comment=mongoose.model('Comment',schema);
module.exports=Comment;